Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better appearance integration, allowing easy themeability #7

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

meden
Copy link

@meden meden commented Dec 28, 2012

Hi,
I just merged your last changes (basically identical to mine, of course) so you should not get conflicts anymore if you will accept this pull request.

What I tried to do in this code is basically make the appearance of new GTG columns just like the Calendar.EventsList. To achieve the goal, now the items in GTG columns rely on CSS classes used in Calendar.EventsList rather than the ones set in stylesheet.css. The latter are still used if the option Use system theme is turned off, so that the user can override the system theme. That way, the appearance will be consistent even if the user changes the shell theme (using the User Themes extension).
I had to use some vodoo (xyz.actor.remove_style_class_name("foo") because the GTG menu is built in a completely different way than the Calendar.EventsList (using PopupMenuItem for headers too).
So, in short:

  • If Use system theme is On, the Calendar.EventsList CSS classes are used (plus some tweak in stylesheet.css.
  • If Use system theme is Off, the *-custom CSS classes in stylesheet.css are used, completely overriding the system theme.

As a plus:

  • added a title for the todo column
  • added localization support in gtgtodomenus.js

I hope the changes will be considered useful. Of course, we can discuss anything, if you want. Thanks for your work, anyway. And happy holidays!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant